package com.jarvan.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(0, "成功"),
    PARAM_ERROR(1, "参数不正确"),
    TYPE_DUP(2, "型号重复"),
    TRAIN_NOT_EXIST(3, "火车不存在"),
    STATION_NOT_EXIST(4, "站点不存在"),
    PASSENGER_NOT_EXIST(5, "用户不存在"),
    PASSENGER_ALREADY_EXIST(6, "用户已存在"),
    ADD_FIALURE(7, "添加失败"),
    TICKET_IS_EMPTY(8, "该状态数据为空"),
    TICKET_NOT_EXIST(9, "订单不存在"),
    TICKET_LIST_ISEMPTY(10, "订单列表为空")
    ;
    private final Integer code;
    private final String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
